import request from '@/utils/request'

export const uploadUrl = 'https://saas-test.yunquecloud.com/api/saas-mall-public-service/public/upload/uploadImg'

// 上传文件
export function uploadFile(data = {}) {
  return request.post('/common/upload', data)
}

// 根据ID获取店铺
export function getShopListByShopId(data = {}) {
  return request.post('/common/getShopById', data)
}

// 根据ID获取店铺
export function getAllSiteList(params = {}) {
  return request.get('/common/selectAllSites', { params })
}

// 获取站点的业态类目
export function getBusinessType(params = {}) {
  return request.get('/common/site/getBusinessType', { params })
}

// 获取景区项目列表
export function getProjectList(data = {}) {
  return request.post('/common/project/list', data)
}

